package com.home.timesheet.entity;

import java.util.Date;

import com.home.common.BaseVO;
import com.home.entity.User;

public class TimesheetVO extends BaseVO{
	private String timesheetId;	// 主键
  
	private String userId;     // 用户id
	private Double foreCast;   // 预计金额
	private Double actCast;    // 实际发生
	private String reason;     // 原因
	private Date dateTime;     // 发生时间
	private Integer type;      // 原因类型
	private String useBy;      // 谁使用
	
	
	private User user;         // User 对象
	
   
    public Integer getType() {
        return type;
    }
    public void setType(Integer type) {
        this.type = type;
    }
    public User getUser() {
        return user;
    }
    public void setUser(User user) {
        this.user = user;
    }
    public Double getForeCast() {
        return foreCast;
    }
    public void setForeCast(Double foreCast) {
        this.foreCast = foreCast;
    }
    public Double getActCast() {
        return actCast;
    }
    public void setActCast(Double actCast) {
        this.actCast = actCast;
    }
    public String getReason() {
        return reason;
    }
    public void setReason(String reason) {
        this.reason = reason;
    }
    public Date getDateTime() {
        return dateTime;
    }
    public void setDateTime(Date dateTime) {
        this.dateTime = dateTime;
    }
    public String getTimesheetId() {
        return timesheetId;
    }
    public void setTimesheetId(String timesheetId) {
        this.timesheetId = timesheetId;
    }

    public String getUserId() {
        return super.getUser(userId);
    }
    public void setUserId(String userId) {
        this.userId = super.getUser(userId);
    }
    public String getUseBy() {
        return useBy;
    }
    public void setUseBy(String useBy) {
        this.useBy = useBy;
    }
    @Override
    public String toString() {
        return "TimesheetVO [timesheetId=" + timesheetId + ", userId=" + userId
                + ", foreCast=" + foreCast + ", actCast=" + actCast
                + ", reason=" + reason + ", dateTime=" + dateTime + ", type="
                + type + ", useBy=" + useBy + ", user=" + user + "]";
    }
  
 
	
}
